package com.pigdroid.adbsqlite.jdbc;

import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.math.BigDecimal;
import java.net.URL;
import java.sql.Array;
import java.sql.Blob;
import java.sql.Clob;
import java.sql.Date;
import java.sql.NClob;
import java.sql.Ref;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.RowId;
import java.sql.SQLException;
import java.sql.SQLFeatureNotSupportedException;
import java.sql.SQLWarning;
import java.sql.SQLXML;
import java.sql.Statement;
import java.sql.Time;
import java.sql.Timestamp;
import java.util.Calendar;
import java.util.Map;

import com.pigdroid.adbsqlite.CSVIterator;

public class ADBSQLiteResultSet implements ResultSet {

	private CSVIterator iterator;
	private int nextCount = 0;
	private Map<String, String> currentRow;
	private int fetchDirection;
	private ADBSQLiteConnection connection;

	public ADBSQLiteResultSet() {
		iterator = CSVIterator.EMPTY;
	}
	
	public ADBSQLiteResultSet(ADBSQLiteConnection con, CSVIterator executeQuery) {
		this.iterator = executeQuery;
		this.connection = con;
	}

	public boolean isWrapperFor(Class<?> iface) throws SQLException {
		return false;
	}

	public <T> T unwrap(Class<T> iface) throws SQLException {
		return null;
	}

	public boolean absolute(int off) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	public void afterLast() throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	public void beforeFirst() throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	public void cancelRowUpdates() throws SQLException {
	}

	public void clearWarnings() throws SQLException {
	}

	public void close() throws SQLException {
	}

	public void deleteRow() throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	public int findColumn(String columnLabel) throws SQLException {
		int ret = iterator.findColumn(columnLabel);
		if (ret < 0) {
			throw new SQLException(columnLabel + " column not found.");
		}
		return ret + 1;
	}

	public boolean first() throws SQLException {
		return false;
	}

	public Array getArray(int arg0) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	public Array getArray(String arg0) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	public InputStream getAsciiStream(int arg0) throws SQLException {
		return new ByteArrayInputStream(getString(arg0).getBytes());
	}

	public InputStream getAsciiStream(String arg0) throws SQLException {
		return new ByteArrayInputStream(getString(arg0).getBytes());
	}

	public BigDecimal getBigDecimal(int arg0) throws SQLException {
		BigDecimal ret = null;
		String val = getString(arg0);
		if (val != null) {
			ret = BigDecimal.valueOf(Long.valueOf(val));
		}
		return ret;
	}

	public BigDecimal getBigDecimal(String arg0) throws SQLException {
		return getBigDecimal(findColumn(arg0));
	}

	public BigDecimal getBigDecimal(int arg0, int arg1) throws SQLException {
		return getBigDecimal(arg0);
	}

	public BigDecimal getBigDecimal(String arg0, int arg1) throws SQLException {
		return getBigDecimal(arg0);
	}

	public InputStream getBinaryStream(int arg0) throws SQLException {
		return getAsciiStream(arg0);
	}

	public InputStream getBinaryStream(String arg0) throws SQLException {
		return getAsciiStream(arg0);
	}

	public Blob getBlob(int arg0) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	public Blob getBlob(String arg0) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	public boolean getBoolean(int arg0) throws SQLException {
		Boolean ret = null;
		String val = getString(arg0);
		if (val != null) {
			ret = Boolean.valueOf(val);
		}
		return ret;
	}

	public boolean getBoolean(String arg0) throws SQLException {
		return getBoolean(findColumn(arg0));
	}

	public byte getByte(int arg0) throws SQLException {
		Byte ret = null;
		String val = getString(arg0);
		if (val != null) {
			ret = Byte.valueOf(val);
		}
		return ret;
	}

	public byte getByte(String arg0) throws SQLException {
		return getByte(findColumn(arg0));
	}

	public byte[] getBytes(int arg0) throws SQLException {
		return getString(arg0).getBytes();
	}

	public byte[] getBytes(String arg0) throws SQLException {
		return getString(arg0).getBytes();
	}

	public Reader getCharacterStream(int arg0) throws SQLException {
		return new InputStreamReader(getAsciiStream(arg0));
	}

	public Reader getCharacterStream(String arg0) throws SQLException {
		return new InputStreamReader(getAsciiStream(arg0));
	}

	public Clob getClob(int arg0) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	public Clob getClob(String arg0) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	public int getConcurrency() throws SQLException {
		// TODO Auto-generated method stub
		return 0;
	}

	public String getCursorName() throws SQLException {
		return null;
	}

	public Date getDate(int arg0) throws SQLException {
		Date ret = null;
		String val = getString(arg0);
		if (val != null) {
			ret = Date.valueOf(val);
		}
		return ret;
	}

	public Date getDate(String arg0) throws SQLException {
		return getDate(findColumn(arg0));
	}

	public Date getDate(int arg0, Calendar arg1) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	public Date getDate(String arg0, Calendar arg1) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	public double getDouble(int arg0) throws SQLException {
		Double ret = null;
		String val = getString(arg0);
		if (val != null) {
			ret = Double.valueOf(val);
		}
		return ret;
	}

	public double getDouble(String arg0) throws SQLException {
		return getDouble(findColumn(arg0));
	}

	public int getFetchDirection() throws SQLException {
		return fetchDirection;
	}

	public int getFetchSize() throws SQLException {
		// TODO Auto-generated method stub
		return 0;
	}

	public float getFloat(int arg0) throws SQLException {
		Float ret = null;
		String val = getString(arg0);
		if (val != null) {
			ret = Float.valueOf(val);
		}
		return ret;
	}

	public float getFloat(String arg0) throws SQLException {
		return getFloat(findColumn(arg0));
	}

	public int getHoldability() throws SQLException {
		// TODO Auto-generated method stub
		return 0;
	}

	public int getInt(int arg0) throws SQLException {
		// TODO Auto-generated method stub
		return 0;
	}

	public int getInt(String arg0) throws SQLException {
		// TODO Auto-generated method stub
		return 0;
	}

	public long getLong(int arg0) throws SQLException {
		// TODO Auto-generated method stub
		return 0;
	}

	public long getLong(String arg0) throws SQLException {
		// TODO Auto-generated method stub
		return 0;
	}

	public ResultSetMetaData getMetaData() throws SQLException {
		return new ADBSQLiteResultSetMetaData(this);
	}

	public Reader getNCharacterStream(int arg0) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	public Reader getNCharacterStream(String arg0) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	public NClob getNClob(int arg0) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	public NClob getNClob(String arg0) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	public String getNString(int arg0) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	public String getNString(String arg0) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	public Object getObject(int arg0) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	public Object getObject(String arg0) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	public Object getObject(int arg0, Map<String, Class<?>> arg1)
			throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	public Object getObject(String arg0, Map<String, Class<?>> arg1)
			throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	public <T> T getObject(int arg0, Class<T> arg1) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	public <T> T getObject(String arg0, Class<T> arg1) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	public Ref getRef(int arg0) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	public Ref getRef(String arg0) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	public int getRow() throws SQLException {
		// TODO Auto-generated method stub
		return 0;
	}

	public RowId getRowId(int arg0) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	public RowId getRowId(String arg0) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	public SQLXML getSQLXML(int arg0) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	public SQLXML getSQLXML(String arg0) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	public short getShort(int arg0) throws SQLException {
		// TODO Auto-generated method stub
		return 0;
	}

	public short getShort(String arg0) throws SQLException {
		// TODO Auto-generated method stub
		return 0;
	}

	public Statement getStatement() throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	public String getString(int arg0) throws SQLException {
		return currentRow.get(findColumnName(arg0));
	}

	private Object findColumnName(int arg0) {
		return iterator.getHeader(arg0);
	}

	public String getString(String arg0) throws SQLException {
		return currentRow.get(arg0);
	}

	public Time getTime(int arg0) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	public Time getTime(String arg0) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	public Time getTime(int arg0, Calendar arg1) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	public Time getTime(String arg0, Calendar arg1) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	public Timestamp getTimestamp(int arg0) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	public Timestamp getTimestamp(String arg0) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	public Timestamp getTimestamp(int arg0, Calendar arg1) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	public Timestamp getTimestamp(String arg0, Calendar arg1)
			throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	
	public int getType() throws SQLException {
		// TODO Auto-generated method stub
		return 0;
	}

	
	public URL getURL(int arg0) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	
	public URL getURL(String arg0) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	
	public InputStream getUnicodeStream(int arg0) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	
	public InputStream getUnicodeStream(String arg0) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	
	public SQLWarning getWarnings() throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	
	public void insertRow() throws SQLException {
		// TODO Auto-generated method stub

	}

	
	public boolean isAfterLast() throws SQLException {
		// TODO Auto-generated method stub
		return false;
	}

	
	public boolean isBeforeFirst() throws SQLException {
		// TODO Auto-generated method stub
		return false;
	}

	
	public boolean isClosed() throws SQLException {
		// TODO Auto-generated method stub
		return false;
	}

	
	public boolean isFirst() throws SQLException {
		return nextCount == 1;
	}

	
	public boolean isLast() throws SQLException {
		return !iterator.hasNext();
	}

	
	public boolean last() throws SQLException {
		while (iterator.hasNext()) {
			next();
		}
		return true;
	}

	
	public void moveToCurrentRow() throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void moveToInsertRow() throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public boolean next() throws SQLException {
		boolean ret = iterator.hasNext();
		if (ret) {
			currentRow = iterator.next();
			nextCount++;
		}
		return ret;
	}

	
	public boolean previous() throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void refreshRow() throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public boolean relative(int off) throws SQLException {
		if (off < 0) {
			throw new SQLFeatureNotSupportedException();
		} else {
			for (int i = 0; i < off; i++) {
				next();
			}
		}
		return true;
	}

	
	public boolean rowDeleted() throws SQLException {
		return false;
	}

	
	public boolean rowInserted() throws SQLException {
		return false;
	}

	
	public boolean rowUpdated() throws SQLException {
		return false;
	}

	
	public void setFetchDirection(int arg0) throws SQLException {
		this.fetchDirection = arg0;
	}

	
	public void setFetchSize(int arg0) throws SQLException {
		// no effect
	}

	
	public void updateArray(int arg0, Array arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();

	}

	
	public void updateArray(String arg0, Array arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();

	}

	
	public void updateAsciiStream(int arg0, InputStream arg1)
			throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateAsciiStream(String arg0, InputStream arg1)
			throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateAsciiStream(int arg0, InputStream arg1, int arg2)
			throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateAsciiStream(String arg0, InputStream arg1, int arg2)
			throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateAsciiStream(int arg0, InputStream arg1, long arg2)
			throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateAsciiStream(String arg0, InputStream arg1, long arg2)
			throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateBigDecimal(int arg0, BigDecimal arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateBigDecimal(String arg0, BigDecimal arg1)
			throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateBinaryStream(int arg0, InputStream arg1)
			throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateBinaryStream(String arg0, InputStream arg1)
			throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateBinaryStream(int arg0, InputStream arg1, int arg2)
			throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateBinaryStream(String arg0, InputStream arg1, int arg2)
			throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateBinaryStream(int arg0, InputStream arg1, long arg2)
			throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateBinaryStream(String arg0, InputStream arg1, long arg2)
			throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateBlob(int arg0, Blob arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateBlob(String arg0, Blob arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateBlob(int arg0, InputStream arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateBlob(String arg0, InputStream arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateBlob(int arg0, InputStream arg1, long arg2)
			throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateBlob(String arg0, InputStream arg1, long arg2)
			throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateBoolean(int arg0, boolean arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateBoolean(String arg0, boolean arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateByte(int arg0, byte arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateByte(String arg0, byte arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateBytes(int arg0, byte[] arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateBytes(String arg0, byte[] arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateCharacterStream(int arg0, Reader arg1)
			throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateCharacterStream(String arg0, Reader arg1)
			throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateCharacterStream(int arg0, Reader arg1, int arg2)
			throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateCharacterStream(String arg0, Reader arg1, int arg2)
			throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateCharacterStream(int arg0, Reader arg1, long arg2)
			throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateCharacterStream(String arg0, Reader arg1, long arg2)
			throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateClob(int arg0, Clob arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateClob(String arg0, Clob arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateClob(int arg0, Reader arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateClob(String arg0, Reader arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateClob(int arg0, Reader arg1, long arg2)
			throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateClob(String arg0, Reader arg1, long arg2)
			throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateDate(int arg0, Date arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateDate(String arg0, Date arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateDouble(int arg0, double arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateDouble(String arg0, double arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateFloat(int arg0, float arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateFloat(String arg0, float arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateInt(int arg0, int arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateInt(String arg0, int arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateLong(int arg0, long arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateLong(String arg0, long arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateNCharacterStream(int arg0, Reader arg1)
			throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateNCharacterStream(String arg0, Reader arg1)
			throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateNCharacterStream(int arg0, Reader arg1, long arg2)
			throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateNCharacterStream(String arg0, Reader arg1, long arg2)
			throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateNClob(int arg0, NClob arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateNClob(String arg0, NClob arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateNClob(int arg0, Reader arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateNClob(String arg0, Reader arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateNClob(int arg0, Reader arg1, long arg2)
			throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateNClob(String arg0, Reader arg1, long arg2)
			throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateNString(int arg0, String arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateNString(String arg0, String arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateNull(int arg0) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateNull(String arg0) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateObject(int arg0, Object arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateObject(String arg0, Object arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateObject(int arg0, Object arg1, int arg2)
			throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateObject(String arg0, Object arg1, int arg2)
			throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateRef(int arg0, Ref arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateRef(String arg0, Ref arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateRow() throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateRowId(int arg0, RowId arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateRowId(String arg0, RowId arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateSQLXML(int arg0, SQLXML arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateSQLXML(String arg0, SQLXML arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateShort(int arg0, short arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateShort(String arg0, short arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateString(int arg0, String arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateString(String arg0, String arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateTime(int arg0, Time arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateTime(String arg0, Time arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateTimestamp(int arg0, Timestamp arg1) throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public void updateTimestamp(String arg0, Timestamp arg1)
			throws SQLException {
		throw new SQLFeatureNotSupportedException();
	}

	
	public boolean wasNull() throws SQLException {
		return false;
	}

	public CSVIterator getIterator() {
		return iterator;
	}

	public ADBSQLiteConnection getConnection() {
		return connection;
	}

}
